Saturday, September 23, 2017
snake game using c++

Snake Game using C++ [Complete Code]

Snake game using C++ complete code is demanded by many friend ! so i decided to write an article, providing you complete code  of Snake game in c++ without any error :-)Change the headers...

Write name of ALLAH using c++ program

 Source code : #include<iostream> using namespace std;void main(){cout<<endl<<endl;for(int i = 0; i<40; i++){if(i<4){ if(i == 0){ cout<<" *t** t**t**n"; }else if(i==2){ cout<<" * * t**t**t**n"; cout<<" * * t**t**t**n"; } else if(i == 3){ cout<<"* * t**t**t**n"; }else{ cout<<" **t**t**t**n"; } }else if(i >= 4 && i<22){ cout<<"*"; }else{ cout<<" "; } }cout<<endl; system("pause"); }Output...

Simple calculator in Java

import java.util.Scanner; import javax.swing.JOptionPane; /** * * @author Sohail Afzal */public class javaCalculator {public static void main(String args) { int num1; int num2;String operation; Scanner input = new Scanner(;System.out.println("please enter the first number"); num1 = input.nextInt();System.out.println("please enter the second number"); num2 = input.nextInt();Scanner op = new...

How to find sum of several integers in c++

#include <iostream>using namespace std;int main (){int count = 1;int sum = 0;int number ;int numberiteam ;cout<<" enter num of iteams:  n";cin>>numberiteam;cout<<"enter number: n";cin>>number;do {sum = sum + number;count++;}while (count <=6);} 

Pin It on Pinterest

Share This