Solution:NIIT/GNIIT Sonugiri0032@gmail.com

Tuesday, February 02, 2016

C++ VOWEL

C++ VOWEL


PROGRAMMING AND C# CODES
C# programming tutorial 1




CODE C# VOWEL

using System;
 
 namespace ConsoleApplication3
{ class Program
 { static void Main(string[] args)
{ Char C1;
 Console.WriteLine("enter the C1");
 C1 = Convert.ToChar(Console.ReadLine());
 switch (C1)
{ case 'a':
 Console.WriteLine("vowel");
 break;
 case 'r':
 Console.WriteLine("vowel");
 break;
 case 'i':
 Console.WriteLine("vowel");
 break;
 case 'o':
 Console.WriteLine("vowel");
 break;
 case 'u':
 Console.WriteLine("vowel");
 break;
} Console.ReadLine();
}
}
}

                   (end)


ENTER THE 10 NUMBERS AND SUM CODE

using System;
namespace ConsoleApplication8
class Program
{

 static void Main(string[] args)
{ int num, i, sum = 0;
 Console.WriteLine("enter the number");
 for (i = 1; i <= 10; i++) 
{ Console.WriteLine("enter the fist number");
  num = Convert.ToInt32(Console.ReadLine());
num = num + sum;

{
 Console.WriteLine("enter the sum:" + sum);

}
 Console.ReadLine();


}
}
}


                   (end)


the 10 number  of positive integers and negative integers?


using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace ConsoleApplication5



{
  class Program



{
  static void Main(string[] args)



{
  int num,p=0,n=0,ctr;

Console.WriteLine("enter the number 10 position and integers");

for ( ctr= 1; ctr <= 10; ctr++)



{
  num = Convert.ToInt32(Console.ReadLine());

if (num > 0)



{

p++;

}
  else





{

n++;

}

}
  Console.WriteLine("the number of positive integers are" + p);

Console.WriteLine("the number of negative integers are" + n);

Console.ReadLine();





}

}

}                    (end)

How To Count Vowels In C++ 


 

fibonacci series program in c#


white the program employee the salary ,name and id  program code



using System;

namespace programming
{
   public class employee
    {
       public void accept()
       {
           int id, salary;
           string name;
               Console.WriteLine("enter the salary");
           salary=Convert.ToInt32(Console.ReadLine());
           Console.WriteLine("enter the name");
           name = Convert.ToString(Console.ReadLine());
           Console.WriteLine("enter the id");
           id = Convert.ToInt32(Console.ReadLine());
         
       }
        static void Main(string[] args)
       {
           int i;
           employee e = new employee();
           for (i = 0; i <= 10; i++) 
           {
               e.accept();
               Console.ReadLine();
           }
       }
    }
}

Share:

0 comments:

GNIITSOLUTION GNIIT SOLUTION. Powered by Blogger.

Translate

Blog Archive

Unordered List