Skip to main content

Posts

Featured

CONDITIONAL OPERTOR

//  Wap to enter any year from the keyboard and display weather it is a leap year or non- leap year.. #include<iostream.h> #include<stdlib.h> int main() { int a,b; cout<<"enter the year"; cin>>a; b=(a%4==0)? leap year:not a leap year; cout<<"the result is:"<<b; system("pause"); }

Latest posts

WHILE LOOP

NESTED FOR-LOOP

PROGRAM OF ASCII VALUE